<?php 
defined('RUN_KATANA') or die('Restricted access');
if($com->Id > 0):
require_once('components/com_user/validacija.php'); 
if($view == 'new_user')
{
	$com->setButtonsHeader(array 
	(
		0 => array 
		(
			'title' => ucfirst($txt->getWord('edit_cart')),
			'href' => '?c=15',
		),
	));
}
require_once('components/common/com_top.php');
$error = $com->getFormError();
$info = $com->getFormInfo();
?>
<table class="com_form" cellpadding="0" border="0" cellspacing="0">
<?php if($view == 'new_user'): ?>
	<thead>
    	<tr>
            <th>&nbsp;<?php echo ucfirst($txt->getWord('newcustomer'));  ?></th>
            <th>&nbsp;<?php echo ucfirst($txt->getWord('login'));  ?></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="form_left vtop" valign="top"><?php include('components/com_checkout/forms/new_user.php'); ?></td>
            <td class="form_right vtop" valign="top"><?php include('components/com_checkout/forms/login.php'); ?></td>
        </tr>
    </tbody>
<?php endif; ?>
<?php if($view == 'customer'): ?>
	<thead>
    	<tr>
            <th>&nbsp;<?php echo ucfirst($txt->getWord('recipient').' '.$txt->getWord('address'));  ?></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="form_left vtop" valign="top"><?php include('components/com_checkout/forms/customer.php'); ?></td>
        </tr>
    </tbody>
<?php endif; ?>
</table>
<?php require_once('components/common/com_bot.php');  ?>
<?php endif; ?>
